<form action="../app/<tpl> $app_module.app_module_sign </tpl>/system.php?action=manage_update" method="post" id="form_add" name="form_add" style="padding-bottom:20px" >
	<table border="0" cellpadding="0" cellspacing="0" class="from_table">
		<tr>
			<th><tpl> $langSysAppManageName </tpl>:</th>
			<td class="td rowform"><tpl> $app_array.app_module_name </tpl></td>
			<td class="vtop tips2"></td>
		</tr>
		<tr>
			<th><tpl> $langSysAppManageState </tpl>:</th>
			<td class="td rowform">
				<input type="radio" name="app_module_state" value="0" <tpl> if $app_array.app_module_state eq '0' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysAppManageShow </tpl>
				<input type="radio" name="app_module_state" value="1" <tpl> if $app_array.app_module_state eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysAppManageHide </tpl></td>
			<td class="vtop tips2"><tpl> $langSysAppManageStateRemark </tpl></td>
		</tr>
		<tr>
			<th><tpl> $langSysAppManageSort </tpl>:</th>
			<td class="td rowform"><input name='app_module_sort' type='text' id="app_module_sort" class="txtinput" value="<tpl> $app_array.app_module_sort </tpl>" /></td>
			<td class="vtop tips2"><tpl> $langSysAppManageSortRemark </tpl><label style="display:none" for="app_module_sort" class="wrong" metaDone="true" generated="true"></label></td>
		</tr>
		<tr>
			<td></td>
		    <td colspan="2">
			  <span class="btn_left"><input type="submit"  value="<tpl> $langSysAppManageUpdateSave </tpl>" class="btn_submit" /></span>
			  <span class="btn_left"><input type="button" value="<tpl> $langSysAppManageReturn </tpl>" class="btn_submit" onclick="ShowDiv='result_content';getPageContent('app_module.manage.php?action=ajax_list');" /></span>
			 </td>
		</tr>
	</table>
</form>
<script>
$(document).ready(function() {
	var options_add = {
		beforeSubmit:  function(){showLoading(showText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == '1'){
								ShowDiv = "result_content";
								getPageContent("app_module.manage.php?action=ajax_list");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	$("#form_add").validate({
		errorClass: "wrong",
		rules: {
			app_module_sort: {required:true,number:true}
		},
		messages: {
			app_module_sort: {required:"<tpl> $errSysAppManageSortNotNumber </tpl>",number:"<tpl> $errSysAppManageSortNotNumber </tpl>"}
		},
		submitHandler: function() {
			$('#form_add').ajaxSubmit(options_add);
		}
	});
});
</script>